README for "TO WHAT END?"

Dov Levin and Paul Musgrave

In Foreign Policy Analysis

************************************************************************
**** ABOUT ****
************************************************************************

This replication file contains three data files:

* CCES2022processedUPLOAD.dta, which contains selected variables from the University of Massachusetts Amherst module on the 2022 Cooperative Election Study 

* Pilot Processed.dta, which contains data from the pilot we undertook to validate experimental manipulations for the regional hegemony experiment

* ProlificData.dta, which contains data from the experiment we conducted on Prolific in November 2022

It contains five do-files:

* ANALYSIS Humanitarian Replication Code.do, which replicates Experiment 1 from the paper

* ANALYSIS Regional Hegemony Pilot Replication Code.do, which replicates the analysis of the pilot for Experiment 2 discussed in the appendix

* ANALYSIS Regional Hegemony Replication Code.do, which replicates Experiment 2 from the paper 

* ANALYSIS Substitutability Replication Code Part 1.do, which replicates the first part of Experiment 1 (Figure 5 and supporting information)

* ANALYSIS Substitutability Replication Code Part 2.do, which replicates the second part of Experiment 2 (Figure 6 and supporting information)

************************************************************************
**** IMPORTANT NOTE ****
************************************************************************

This analysis assumes the use of Stata Version 18 (as asserted in the do-files). We have endeavored to track down all community-contributed packages and schemes necessary for replication and note these at the top of the do-files. Users should install the indicated ssc packages before running the code; see - help ssc install - for details.

These do-files assume the use of the ado-files up-to-date as of approximately 9 January 2025. Please note that sometimes packages may be updated, breaking full consistency (for instance, ssc package catplot changed during the preparation of this paper). Users may thus find it useful to run

	ado update, update

before running these do-files (although this may also break compatibility with the user's own do-files, should there be more up-to-date ado-files thus being updated).


************************************************************************
**** IMPORTANT NOTE 2 ****
************************************************************************

Before running any of this code, users should change the directory paths to match their own machine's directory for downloads.

************************************************************************
**** INDEX TO FIGURES AND TABLES ****
************************************************************************

We have indicated where each main paper figure, appendix figure, and appendix table may be found in the code, but we also present an index here.

All line numbers approximate. Lines indicate the actual production of the chart or table; users should scroll upward to find the source of the information that is plotted or tabled. 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
*** EXPERIMENT 1 (Humanitarian)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  

** Main Paper Figures

* Figure 1: lines 283-292
* Figure 2: lines 757-764
* Figure 3: lines 1093-1107

** Appendix Figures

* Figure A1: lines 80-87
* Figure A2: lines 651-663
* Figure A3: lines 826-843
* Figure A4: lines 913-930

** Appendix Table

* Table A2: lines 122-127
* Table A3: lines 143-149
* Table A4: lines 199-206
* Table A5: lines 717-724

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
*** EXPERIMENT 2 (Regional Hegemony Pilot)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  

** Appendix Figure

* Figure A5: lines 48-54

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
*** EXPERIMENT 2 (Regional Hegemony)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  

** Main Paper Figures 

* Figure 4: lines 230-233


** Appendix Figures

* Figure A6: lines 451-459


** Appendix Table

* Table A1: lines 72-88
* Table A6: lines 90-91
* Table A7: lines 99-106
* Table A8: lines 193-200
* Table A9: lines 487-496


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
*** EXPERIMENT 3 (Substitutability)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  

** Main Paper Figures

* Figure 5: Part 1, lines 293-300
* Figure 6: Part 2, lines 164-170


** Appendix Figures

* Figure A7: Part 1, lines 304-311
* Figure A8: Part 2, lines 274-283
* Figure A9: Part 2, lines 363-369


** Appendix Table

* Table A10: Part 1, lines 74-80
* Table A11: Part 1, lines 344-349
* Table A12: Part 2, lines 130-137
* Table A13: Part 2, lines 221-228
